package com.echovin.esb.gateway.service.impl;

import com.echovin.esb.gateway.mapper.GatewayServiceMapper;
import com.echovin.esb.gateway.model.GatewayServer;
import com.echovin.esb.gateway.service.GatewayServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GatewayServiceServiceImpl implements GatewayServiceService {
    @Autowired
    GatewayServiceMapper gatewayServiceMapper;

    public GatewayServiceServiceImpl() {
    }

    @Override
    public List<GatewayServer> getGatewayService() {
        return gatewayServiceMapper.getGatewayService();
    }

    @Override
    public int delete(GatewayServer record) {
        return gatewayServiceMapper.delete(record);
    }

    @Override
    public int update(GatewayServer record) {
        return gatewayServiceMapper.update(record);
    }
}
